<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%--@elvariable id="contextPath" type="java.lang.String"--%>
<%--@elvariable id="currentUser" type="org.parademo.service.security.ParademoUser"--%>
<div>
    <ul>
        <!-- user profile -->
        <li>
            <a href="${contextPath}/profile">User Profile</a>
        </li>

        <!-- user proposals -->
        <li>
            <a href="${contextPath}/my-proposals">My proposals</a>
        </li>

       <li>
            <a href="${contextPath}/topic">Topic Management</a>
       </li>
    </ul>

    <c:if test="${not empty currentUser}">
        <div class="credentialsBar">
            <ul class="buttons">
                <li>${currentUser.firstName} ${currentUser.lastName} (${currentUser.username})</li>
                <li><a href="${contextPath}/j_spring_security_logout">Sign Out</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </c:if>
</div>